package com.gxa.admin.recycling.service;

import com.gxa.core.recycling.pojo.Goods;
import com.gxa.core.recycling.pojo.Imgs;
import com.gxa.core.recycling.service.BaseService;

import java.util.List;
import java.util.Map;

public interface GoodsService extends BaseService<Goods> {
    List<Map> findAllByPage(Long id, String name, String type, Boolean hot, Integer page, Integer size);
    Goods findByName(String name);
    void addGoodsToMongo(Goods goods);
    void addImgsToMongo(Imgs imgs);
    void updateMySqlAndMonge(Goods goods);
}
